package com.yunfei.springbootgoods.mapper;

import com.yunfei.springbootgoods.entity.GoodsOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsOrderMapper {

    void addGoodsOrder(GoodsOrder goodsOrder);

    /**
     * 根据订单ID修改订单状态为1：已支付
     * @param
     */
    void updateGoodsOrder01(Integer orderId);

    /**
     * 根据订单ID修改订单状态为0：已取消
     * @param
     */
    void updateGoodsOrder02(Integer orderId);


    List<GoodsOrder> getGoodsOrderList();
}
